home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-05-03 | 20.6 KB | 743 lines | [BINA/hDmp] |
- //For use with ASP replace this line with
- //Tamino Java Script Object for IE5.0
- //Software AG -Technical Services
- //Nigel W. O. Hutchison
-
- var inoVersion="1.2.1.2";
-
- var inoUserAgent="Tamino Client/Java Script/IE5.0 ";
- var inoVersion="1.2.1.1";
- var inoErrorText= new Array();
- var inoEnoErrorBase=8400;
- var inoComponent="INOXJE";
- var inoTransportErrorNo=inoEnoErrorBase+0;
- inoErrorText[0]="HTTP Error ";
- var inoParserErrorNo=inoEnoErrorBase+1;
- inoErrorText[1]="Parser Error ";
- var inoSessionOpenErrorNo=inoEnoErrorBase+2;
- inoErrorText[2]="Session already open";
- var inoSessionNotOpenErrorNo=inoEnoErrorBase+3;
- inoErrorText[3]="No session open";
- var inoSessionFailureErrorNo=inoEnoErrorBase+4;
- inoErrorText[4]="No session established";
- var inoURLdidNotExistNo=inoEnoErrorBase+5;
- inoErrorText[5]="URL did not exist";
- var inoDeleteNotSpecifiedNo=inoEnoErrorBase+6;
- inoErrorText[6]="Document to be Deleted not Specified";
- var inoInvalidNodeTypeNo=inoEnoErrorBase+7;
- inoErrorText[7]="Invalid Node Type";
- var inoSessionIdErrorNo=inoEnoErrorBase+8;
- inoErrorText[8]="Invalid sessionID received from Server";
- var inoNoXMLErrorNo=inoEnoErrorBase+9;
- inoErrorText[9]="No Tamino Response Returned";
-
- //Microsoft XMLDOM node constants
- var NODE_ELEMENT=1;
- var NODE_ATTRIBUTE = 2;
- var NODE_TEXT = 3;
- var NODE_CDATA_SECTION = 4;
- var NODE_ENTITY_REFERENCE =5;
- var NODE_ENTITY = 6;
- var NODE_PROCESSING_INSTRUCTION =7;
- var NODE_COMMENT = 8;
- var NODE_DOCUMENT = 9;
- var NODE_DOCUMENT_TYPE = 10;
- var NODE_DOCUMENT_FRAGMENT = 11;
- var NODE_NOTATION = 12;
-
- function TaminoClient()
- {
- //define properties
- this.XMLDB ="";
- this.securePath="";
- this.lastQuery=""; //f2
- this.pageSize=5;
- this.user="";
- this.password="";
- this.transaction=null;
- this.xmlHeader='<?xml version="1.0"?>'; //default - UTF-8;
- this.userAgent=inoUserAgent+inoVersion;
- this.acceptLanguage="en";
- this.charset="utf-8";
- this.acceptCharset="utf-8";
- var argv=arguments;
- var argc=arguments.length;
- if (argc > 0)
- {
- this.XMLDB=argv[0];
- }
- if (argc > 1)
- this.pageSize=arguments[1];
- if (argc > 2)
- this.user=arguments[2];
- if (argc > 3)
- this.password=arguments[3];
-
-
-
-
- }
- function TaminoTransaction() //transaction class
- {
- this.tid = null;
- this.key = null;
- this.errorNo=0;
- this.errorText="";
- if (arguments.length> 0) this.tid=arguments[0];
- if (arguments.length> 1) this.key=arguments[1];
- }
-
-
- function TaminoResult(queryo,req,noBody) //result class
- {
- //define properties
-
-
- this.queryObj=queryo;
-
- this.REQ=req;
- this.DOM=null;
- this.lastQuery="";
- this.pageSize=5;
- this.user="";
- this.password="";
- this.errorNo=0;
- this.errorText="";
- this.securePath=queryo.securePath;
-
- if (this.REQ)
- {
- var status = this.REQ.status;
- if (status >= "300")
- {
- this.errorNo=inoTransportErrorNo;
- this.errorText=TaminoClientErrorText(inoTransportErrorNo,status,this.REQ.statusText);
- }
- else {
- //this.DOM=new ActiveXObject("Microsoft.XMLDOM");
- //should we check if there is a response entity?
- if (noBody)return;
-
- this.DOM=this.REQ.responseXML;
- if (!this.DOM.documentElement)
- {
- this.errorNo=inoNoXMLErrorNo;
- this.errorText=TaminoClientErrorText(inoNoXMLErrorNo);
- return;
- }
- var p = this.DOM.parseError;
- if ( p.errorCode!="0")
- {
- this.errorNo=inoParserErrorNo;
- this.errorText=TaminoClientErrorText(inoParserErrorNo,
- p.errorCode,p.reason);
- }
- else {
- var message = this.ErrorNode();
-
- if (message)
- {
- this.errorNo=Number(message.getAttribute("ino:returnvalue"));
- var node = message.selectSingleNode("ino:messagetext");
- var text=this.errorNo;
- if (node) text= node.getAttribute("ino:code")+" "+node.text; text= node.getAttribute("ino:code")
- +" "+node.text;
- var lines=message.selectNodes("ino:messageline");
- if (lines)
- {
- var l=lines.length;
- for (var j=0;j<l;j++)
- {
- var line =lines.item(j);
- text=text+', '+line.text;
- }
- }
- this.errorText=text;
- }
-
- var tran = this.queryObj.transaction;
- if (tran)
- {
- if (!tran.update(this.DOM))
- {
- this.errorNo=
- tran.errorNo;
- this.errorText=
- tran.errorText;
- }
- }
- }
-
-
- }
- }
- }
-
-
- TaminoClient.prototype.query= function (xqlquery)
- {
- var cursor;
- var pageSize= parseInt(this.pageSize);
- if (pageSize>0)
- cursor="?_XQL(1,"+pageSize+")="+this.escape(xqlquery);
- else cursor="?_XQL="+this.escape(xqlquery);
- if (arguments.length > 1)
- return(this.queryCursor(cursor,arguments[1]));
- else return(this.queryCursor(cursor));
- }
- TaminoClient.prototype.queryCursor=function(cursorQuery)
- {
- var extraPath = "";
- if (arguments.length > 1)
- extraPath=arguments[1];
- var session= this.tEncoded();
- if (session !="") session="&"+session;
- this.lastQuery=this.XMLDB+extraPath+cursorQuery+session;
-
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("GET",this.lastQuery,
- false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- REQ.setRequestHeader("Cache-Control","no-cache");
- //REQ.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset="+this.charset);
- REQ.send("");
- var result = new TaminoResult(this,REQ);
- result.lastCursor=cursorQuery;
- return(result);
- }
- TaminoClient.prototype.querydelete=function(query)
- {
- if (arguments.length > 1)
- this.lastQuery=this.XMLDB+arguments[1];
- else this.lastQuery=this.XMLDB+this.securePath;
- var clause =this.escape(query)
- var session=this.tEncoded();
- if (session != "") session="&"+session;
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("POST",this.lastQuery,false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- //REQ.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset="+this.charset);
- REQ.send("_DELETE="+clause+session);
- var result = new TaminoResult(this,REQ);
- return(result);
- }
- TaminoClient.prototype.inodelete=function(node)
- {
- if (node && (node.nodeType == NODE_ELEMENT
- || node.nodeType == NODE_DOCUMENT))
- {
-
- var clause = node.nodeName+'[@ino:id="'
- +node.getAttribute("ino:id")+'"]';
- if (arguments.length > 1)
- return(this.querydelete(clause,arguments[1]));
- else return(this.querydelete(clause));
- }
- else {
- var result = new TaminoResult(this,null);
- result.erroNo=inoDeleteNotSpecifiedNo;
- result.errorText=TaminoClientErrorText(inoDeleteNotSpecifiedNo);
- }
- return(result);
- }
- TaminoClient.prototype.escape=function(myString)
- {
- var out="";
- var length=myString.length;
- for (var i=0;i<length;i++)
- {
- var char = myString.charAt(i);
- var val=char.charCodeAt(0);
- if (val > 255)
- {
- out = out + ""+val+";";
- }
- else {
- out=out+char;
- }
- }
- return(escape(out));
- }
- TaminoClient.prototype.absoluteURL=function(reurl)
- {
- //check if URL is absolute
- var urlPattern=/^http:/;
- if (reurl.match(urlPattern)!= null)
- return(reurl);
- else return(this.XMLDB+"/"+reurl);
- }
- TaminoClient.prototype.deleteDocument= function (reurl)
- {
- this.lastQuery=this.absoluteURL(reurl);
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("DELETE",this.lastQuery,false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.send("");
- var result=new TaminoResult(this,REQ,true);
- return(result);
- }
- TaminoClient.prototype.getDocument=function (reurl)
- {
- this.lastQuery=this.absoluteURL(reurl);
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("GET",this.lastQuery,false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- REQ.setRequestHeader("Cache-Control","no-cache");
- REQ.send("");
- var result=new TaminoResult(this,REQ);
- return(result);
- }
- TaminoClient.prototype.putDocument=function (reurl,node)
- {
- var header;
- this.lastQuery=this.absoluteURL(reurl);
- if (node.nodeType == NODE_ELEMENT)
- header = this.xmlHeader;
- else {if (node.nodeType == NODE_DOCUMENT)
- header="";
- else {
- var r = new TaminoResult(this,null);
- r.errorNo=inoInvalidNodeTypeNo;
- r.errorText=TaminoClientErrorText(inoInvalidNodeTypeNo,node.nodeType);
- return(r);
- }
- }
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("PUT",this.lastQuery,false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Content-Type","text/xml; charset="+this.charset);
- REQ.send(header+node.xml);
- var result=new TaminoResult(this,REQ,true);
- return(result);
- }
- TaminoClient.prototype.head=function (reurl)
- {
- this.lastQuery=this.absoluteURL(reurl);
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("HEAD",this.lastQuery,false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.send("");
- var result=new TaminoResult(this,REQ,true);
- return(result);
- }
-
- TaminoClient.prototype.process=function(node)
- {
- var header;
- var nodeType=node.nodeType;
- if (nodeType == NODE_ELEMENT)
- header = this.xmlHeader;
- else {if (nodeType == NODE_DOCUMENT)
- header="";
- else {
- var r = new TaminoResult(this,null);
- r.errorNo=inoInvalidNodeTypeNo;
- r.errorText=TaminoClientErrorText(inoInvalidNodeTypeNo,nodeType);
- return(r);
- }
- }
-
- if (arguments.length > 1)
- this.lastQuery=this.XMLDB+arguments[1];
- else this.lastQuery=this.XMLDB+this.securePath;
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("POST",this.lastQuery,false,this.user,this.password);
- var session=this.tEncoded();
- if (session) session=session+"&";
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- REQ.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset="+this.charset);
- REQ.send(session+"_PROCESS="+this.escape(header+node.xml));
- var r = new TaminoResult(this,REQ);
- return(r);
- }
-
- TaminoResult.prototype.cursor=function(attr)
- {
- var query = this.getCursorQuery(attr);
-
- if (query) return(this.queryObj.queryCursor(query));
- return(this);
- }
- TaminoResult.prototype.rObject= function()
- {
- var rObjNodelist =this.DOM.getElementsByTagName("ino:object");
- if (rObjNodelist)return(rObjNodelist.item(0));
- return(null);
- }
- TaminoResult.prototype.getInoId=function ()
- {
- var rObj = this.rObject();
- if (rObj) return(rObj.getAttribute("ino:id"));
- return(null);
- }
- TaminoResult.prototype.getDocType=function ()
- {
- var rObj = this.rObject();
- if (rObj) return(rObj.getAttribute("ino:doctype"));
- return(null);
- }
- TaminoResult.prototype.getCollection=function ()
- {
- var rObj = this.rObject();
- if (rObj) return(rObj.getAttribute("ino:collection"));
- return(null);
- }
- TaminoResult.prototype.getLocation=function()
- {
- var location = this.REQ.getResponseHeader("Location");
- if (location) return (location);
- var collection = this.getCollection();
- var docType = this.getDocType();
- var inoId= this.getInoId();
- if (collection && docType && inoId)
- return(this.queryObj.XMLDB+"/"+collection+"/"+docType+"/@"+inoId);
- return(null);
- }
-
- TaminoResult.prototype.ErrorNode=function()
- {
- var messages=this.DOM.getElementsByTagName("ino:message");
- var messagesLength=messages.length;
- var message;
- var i;
- var returnCode;
- for (i=0;i<messagesLength;i++)
- {
- message=messages.item(i);
- returnCode = message.getAttribute("ino:returnvalue");
- if (returnCode!="0") return(message);
- }
- return(null);
- }
-
-
-
- TaminoResult.prototype.nodes=function ()
- {
- var result = this.DOM.getElementsByTagName("xql:result").item(0);
- if (result) return(result.childNodes);
- return(null);
- }
- TaminoResult.prototype.getResult=function ()
- {
- var result = this.DOM.getElementsByTagName("xql:result").item(0);
- return(result);
- }
- TaminoResult.prototype.getFirst=function (){
- return(this.cursor("first"));
- }
- TaminoResult.prototype.getPrev=function (){
- return(this.cursor("prev"));
- }
- TaminoResult.prototype.getNext=function (){
-
- return(this.cursor("next"));
- }
- TaminoResult.prototype.getLast=function (){
- return(this.cursor("last"));
- }
- TaminoResult.prototype.refresh=function(){
- if (!this.lastCursor) return(this);
- return(this.queryObj.queryCursor(this.lastCursor));
- }
-
- TaminoResult.prototype.getCursorQuery=function (attr)
- {
- var link = this.DOM.getElementsByTagName("ino:"+attr).item(0);
- if (link) return(link.getAttribute("ino:href"));
- return("");
- }
- TaminoResult.prototype.getTotalCount=function()
- {
- var doc;
- var cursorList;
- var nodes;
- if (doc=this.DOM)
- {
- if (cursorList=doc.getElementsByTagName("ino:cursor"))
- return(cursorList.item(0).getAttribute("ino:count"));
- if (nodes=this.nodes())
- return(nodes.length);
- }
- return(null);
- }
- TaminoClient.prototype.insert=function (node)
- {
- //clear ino:id
- node.attributes.removeNamedItem("ino:id");
- if (arguments.length > 1)
- return(this.process(node,arguments[1]));
- return(this.process(node));
- }
- TaminoClient.prototype.update =function (node,inoid)
- {
- //override inoId if it exists
- inoidNode=node.ownerDocument.createAttribute("ino:id");
- node.attributes.setNamedItem(inoidNode);
- inoidNode.nodeValue=inoid;
- if (arguments.length > 2)
- return(this.process(node,arguments[2]));
- return(this.process(node));
- }
- TaminoClient.prototype.inoDoCommand=function(command,tidParam)
- {
- this.lastQuery=this.XMLDB+this.securePath;
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("POST",this.lastQuery,false,this.user,this.password);
- //REQ.open("GET","http://pctamino2/tamino/newDB?_connect=*",false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- REQ.send(command+"=*&"+tidParam);
- result=new TaminoResult(this,REQ);
- return(result);
- }
- function TaminoClientErrorText(code)
- {
- var parameters="";
- var l= arguments.length;
- for(var i=1;i<l;i++){ parameters=parameters+" " + arguments[i]; }
- return (inoComponent+code+" "+inoErrorText[code-inoEnoErrorBase]+parameters);
- //this should get the error text from the server if the langauge is not right
-
- }
- TaminoClient.prototype.SessionError=function(code)
- {
- var result= new TaminoResult(this,null);
- result.errorNo=code;
- result.errorText=TaminoClientErrorText(code);
- return(result);
- }
-
- TaminoClient.prototype.startSession= function ()
- {
- //test
- if (this.transaction!=null)
- {
- return(this.SessionError(inoSessionOpenErrorNo));
- }
- var result = this.inoDoCommand("_connect","");
-
- if (!result.errorNo)
- {
- var root=result.DOM.getElementsByTagName("ino:response").item(0);
- if (root)
- {
- var tid = root.getAttribute("ino:sessionid");
- var key = root.getAttribute("ino:sessionkey");
- if (tid && key)
- {
- this.errorNo=0;
- this.transaction=new TaminoTransaction(tid,key);
- return(result);
- }
- }
- result.errorNo=inoSessionFailureErrorNo;
- result.errorText=TamTaminoClientErrorText(inoSessionFailureErrorNo);
-
- }
- return(result);
- }
- TaminoClient.prototype.endSession=function ()
- {
- var result;
- if (!this.transaction)
- {
- return(this.SessionError(inoSessionNotOpenErrorNo));
- }
- result = this.inoDoCommand("_disconnect",this.tEncoded());
- this.transaction=null;
- return(result);
- }
- TaminoClient.prototype.commit= function ()
- {
- var result;
- if (!this.transaction)
- {
- return(this.SessionError(inoSessionNotOpenErrorNo));
- }
- result=this.inoDoCommand("_commit",this.tEncoded());
- return(result);
- }
- TaminoClient.prototype.rollback=function ()
- {
- var result;
- if (!this.transaction)
- {
- return(this.SessionError(inoSessionNotOpenErrorNo));
- }
- result = this.inoDoCommand("_rollback",this.tEncoded());
- return(result);
- }
-
-
- TaminoClient.prototype.tEncoded=function ()
- {
- if (this.transaction)
- return(this.transaction.encoded());
- else return("");
- }
- TaminoClient.prototype.setEncoding=function(encoding)
- {
- if (encoding == "")
- {
- this.xmlHeader='<?xml version="1.0"?>';
- }
- else {
- this.xmlHeader='<?xml version="1.0" encoding="'+encoding+'"?>';
- }
- }
- TaminoClient.prototype.setUserPassword=function(user,password)
- {
- this.user=user;
- this.password=password;
- }
-
-
- TaminoTransaction.prototype.encoded=
- function(){return("_sessionid="+this.tid+"&_sessionkey="+this.key);}
-
- TaminoTransaction.prototype.update=function(node)
- {
- var root=node.getElementsByTagName("ino:response").item(0);
- var tid;
- var key;
- if (root)
- {
- tid =root.getAttribute("ino:sessionid");
- key = root.getAttribute("ino:sessionkey");
-
- if (this.tid == tid)
- {
- this.key=key;
- this.errorNo=0;
- this.errorText="";
- return(true);
- }
- }
- else tid="no root";
- this.errorNo=inoSessionIdErrorNo;
- this.errorText=TaminoClientErrorText(inoSessionIdErrorNo,tid,key);
- return(false);
- }
-
- TaminoClient.prototype.define=function(node)
- {
-
- var REQ=new ActiveXObject("Microsoft.XMLHTTP");
- this.lastQuery=this.XMLDB;
- REQ.open("POST",this.lastQuery,false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- REQ.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset="+this.charset);
- REQ.send("_define="+this.escape(this.xmlHeader+node.xml));
- result=new TaminoResult(this,REQ);
- return(result);
- }
- TaminoClient.prototype.undefine=function(query)
- {
- var REQ=new ActiveXObject("Microsoft.XMLHTTP");
- this.lastQuery=this.XMLDB;
- REQ.open("POST",this.lastQuery,false,this.user,this.password);
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- REQ.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset="+this.charset);
- REQ.send("_undefine="+this.escape(query));
- result=new TaminoResult(this,REQ);
- return(result);
- }
-
- TaminoClient.prototype.loadChildren=function(node)
- {
- var elements=node.childNodes;
- var length=elements.length;
- var index=0;
- var buffer = "";
- var errorNo=0;
- var maxBunch=this.maxBunch;
- var REQ;
- var result;
- if (arguments.length > 1) maxBunch=arguments[1];
- if (!maxBunch) maxBunch=100;
- this.lastQuery=this.XMLDB;
- while (!errorNo && index < length)
- {
- var bunch = 0;
- buffer="";
- while (!errorNo && bunch<maxBunch && index<length)
- {
- buffer=buffer+elements.item(index).xml;
- bunch++;
- index++;
- }
- if (!errorNo && bunch)
- {
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("POST",this.lastQuery,false,this.user,this.password);
- var session=this.tEncoded();
- if (session) session=session+"&";
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- REQ.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset="+this.charset);
- REQ.send(session+"_PROCESS="+this.escape(this.xmlHeader+buffer));
- result=new TaminoResult(this,REQ);
- errorNo=result.errorNo;
- }
- }
- if (!result)
- result=new TaminoResult(this);//should give a zero set
-
- return(result);
- }
- TaminoClient.prototype.remoteUpdate=function(verb,reurl,xPath,node)
- {
- var payload="";
- var nodeType=node.nodeType;
- if (node && node.nodeType != NODE_ELEMENT)
- {
- var r = new TaminoResult(this,null);
- r.errorNo=inoInvalidNodeTypeNo;
- r.errorText=TaminoClientErrorText(inoInvalidNodeTypeNo,node.nodeType);
- return(r);
- }
- if (node)
- {
- payload="&_newnode="+this.escape(this.header+node.xml);
- }
- this.lastQuery=this.XMLDB;
- REQ=new ActiveXObject("Microsoft.XMLHTTP");
- REQ.open("POST",this.lastQuery,false,this.user,this.password);
- var session=this.tEncoded();
- if (session) session=session+"&";
- REQ.setRequestHeader("User-Agent",this.userAgent);
- REQ.setRequestHeader("Accept-Language",this.acceptLanguage);
- REQ.setRequestHeader("Accept-Charset",this.acceptCharset);
- REQ.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset="+this.charset);
- REQ.send(session+verb+"="+reurl+"&_xpath="+this.escape(xPath)+payload);
- var r = new TaminoResult(this,REQ);
- return(r);
- }
- TaminoClient.prototype.insertBefore=function(reurl,xpath,node)
- {return(this.remoteUpdate("_insertBefore",reurl,xpath,node));}
- TaminoClient.prototype.appendChild=function(reurl,xpath,node)
- {return(this.remoteUpdate("_appendChild",reurl,xpath,node));}
- TaminoClient.prototype.replaceNode=function(reurl,xpath,node)
- {return(this.remoteUpdate("_replaceNode",reurl,xpath,node));}
- TaminoClient.prototype.insertBefore=function(reurl,xpath)
- {return(this.remoteUpdate("_removeNode",reurl,xpath));}
-
- //For use with ASP replace this line with